package com.api.shopapi.service.impl;


import com.api.shopapi.entity.AskAnswerItem;
import com.api.shopapi.mapper.AskAnswerItemMapper;
import com.api.shopapi.service.AskAnswerItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("AskAnswerItemServiceImplOne")
public class AskAnswerItemServiceImpl implements AskAnswerItemService {

    @Autowired
    private AskAnswerItemMapper askAnswerItemMapper;

    @Override
    public
    int insert(AskAnswerItem askAnswerItem){
        return askAnswerItemMapper.insert(askAnswerItem);
    }


    @Override
    public
    int delete(String askAnswerItemCode){
        return askAnswerItemMapper.delete(askAnswerItemCode);
    }


    @Override
    public
    int update(AskAnswerItem askAnswerItem){
        return askAnswerItemMapper.update(askAnswerItem);
    }


    @Override
    public
    AskAnswerItem getByAskAnswerItemCode(String askAnswerItemCode){
        return askAnswerItemMapper.getByAskAnswerItemCode(askAnswerItemCode);
    }


    @Override
    public
    List<AskAnswerItem> ListByAskAnswerGroupCode(String askAnswerGroupCode){
        return askAnswerItemMapper.ListByAskAnswerGroupCode(askAnswerGroupCode);
    }



}
